package com.ruoyi.store.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.store.WarehouseGoods;
import com.ruoyi.system.api.dto.WarehouseGoodsDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author wangenhao
 * @interfaceName RemoteWarehouseGoodsService
 * @description
 * @date 2024-11-04 下午3:43
 */
@FeignClient(contextId = "remoteWarehouseGoodsService", value = ServiceNameConstants.STORE_SERVICE)
public interface RemoteWarehouseGoodsService {

    @PostMapping("/warehouseGoods/getWarehouseGoodsList")
    R<List<WarehouseGoods>> getWarehouseGoodsList(@RequestBody WarehouseGoodsDTO warehouseGoodsDTO);

    @GetMapping("/warehouseGoods/getStockByGoodsId")
    public R<Integer> getStockByGoodsId(Integer goodsId);
}
